Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 2 - Sound Manager / Sound Manager Reference
Data Structures


Version Records

The functions SndSoundManagerVersion and MACEVersion return version information using a version record. The NumVersion data type defines a version record.

TYPE NumVersion = 
PACKED RECORD
CASE INTEGER OF
 0:
   (majorRev:        SignedByte;    {major revision level in BCD}
   minorAndBugRev:   SignedByte;    {minor revision level}
   stage:            SignedByte;    {development stage}
   nonRelRev:        SignedByte);   {nonreleased revision level}
 1:
   (version:         LongInt);      {all 4 fields together}
END;
IMPORTANT
A version record has the same structure as the first four fields of a version resource (a resource of type 'vers'). See the chapter "Finder Interface" in Inside Macintosh: Macintosh Toolbox Essentials for complete information about version resources.
Field Description
majorRev
The major revision level. This field is a signed byte in binary-coded decimal format.
minorAndBugRev
The minor revision level. This field is a signed byte in binary-coded decimal format.
stage
The development stage. You should use the following constants to specify a development stage:
               CONST
                  developStage      = $20;   {prealpha release}
                  alphaStage        = $40;   {alpha release}
                  betaStage         = $60;   {beta release}
                  finalStage        = $80;   {final release}
nonRelRev
The revision level of a prereleased version.
version
A long integer that contains all four version fields.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996